
//------------------------------------------------------------
// shaco Framework
// Copyright © 2017-2021 chang.liu All rights reserved.
// Feedback: 449612236@qq.com
//------------------------------------------------------------
using System.Collections.Generic;

namespace shaco.Base
{
    public interface IResourceHandleBase : System.Collections.IEnumerator
    {
        float progress { get; }
        bool isDone { get; }
        void OnCompleted(System.Action<IResourceHandleBase> callback);
        void Release();
    }

    public interface IResourceHandle : IResourceHandleBase
    {
        object assetObject { get; }
    }

    public interface IAllResourceHandle : IResourceHandleBase
    {
        IEnumerable<object> assetObjects { get; }
    }
}
